<!DOCTYPE html>
<html>
<head>
	<title></title>
	<script type="text/javascript">
		var arr1=[89,75,99,'hello','post'];
		function fn1(arr1){
			var as=0;
			for(var i=0;i<arr1.length-1;i++){
				if(i==arr1.length-1){
					as=arr1[i]+' ';
				}else{
					as=arr1[i];
				}
			}
			console.log(as);
		}
		
	</script>
</head>
<body>

</body>
</html>